﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F53 RID: 3923
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicReviveAvatarCsReq : IMessage<RogueMagicReviveAvatarCsReq>, IMessage, IEquatable<RogueMagicReviveAvatarCsReq>, IDeepCloneable<RogueMagicReviveAvatarCsReq>, IBufferMessage
	{
		// Token: 0x170031D1 RID: 12753
		// (get) Token: 0x0600AFEE RID: 45038 RVA: 0x001DC0B9 File Offset: 0x001DA2B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicReviveAvatarCsReq> Parser
		{
			get
			{
				return RogueMagicReviveAvatarCsReq._parser;
			}
		}

		// Token: 0x170031D2 RID: 12754
		// (get) Token: 0x0600AFEF RID: 45039 RVA: 0x001DC0C0 File Offset: 0x001DA2C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicReviveAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031D3 RID: 12755
		// (get) Token: 0x0600AFF0 RID: 45040 RVA: 0x001DC0D2 File Offset: 0x001DA2D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicReviveAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x0600AFF1 RID: 45041 RVA: 0x001DC0D9 File Offset: 0x001DA2D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveAvatarCsReq()
		{
		}

		// Token: 0x0600AFF2 RID: 45042 RVA: 0x001DC0EC File Offset: 0x001DA2EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveAvatarCsReq(RogueMagicReviveAvatarCsReq other) : this()
		{
			this.monsterId_ = other.monsterId_;
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AFF3 RID: 45043 RVA: 0x001DC122 File Offset: 0x001DA322
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveAvatarCsReq Clone()
		{
			return new RogueMagicReviveAvatarCsReq(this);
		}

		// Token: 0x170031D4 RID: 12756
		// (get) Token: 0x0600AFF4 RID: 45044 RVA: 0x001DC12A File Offset: 0x001DA32A
		// (set) Token: 0x0600AFF5 RID: 45045 RVA: 0x001DC132 File Offset: 0x001DA332
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x170031D5 RID: 12757
		// (get) Token: 0x0600AFF6 RID: 45046 RVA: 0x001DC13B File Offset: 0x001DA33B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x0600AFF7 RID: 45047 RVA: 0x001DC143 File Offset: 0x001DA343
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicReviveAvatarCsReq);
		}

		// Token: 0x0600AFF8 RID: 45048 RVA: 0x001DC154 File Offset: 0x001DA354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicReviveAvatarCsReq other)
		{
			return other != null && (other == this || (this.MonsterId == other.MonsterId && this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AFF9 RID: 45049 RVA: 0x001DC1A4 File Offset: 0x001DA3A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AFFA RID: 45050 RVA: 0x001DC1F1 File Offset: 0x001DA3F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AFFB RID: 45051 RVA: 0x001DC1F9 File Offset: 0x001DA3F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AFFC RID: 45052 RVA: 0x001DC204 File Offset: 0x001DA404
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.MonsterId);
			}
			this.baseAvatarIdList_.WriteTo(ref output, RogueMagicReviveAvatarCsReq._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AFFD RID: 45053 RVA: 0x001DC254 File Offset: 0x001DA454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			num += this.baseAvatarIdList_.CalculateSize(RogueMagicReviveAvatarCsReq._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AFFE RID: 45054 RVA: 0x001DC2A8 File Offset: 0x001DA4A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicReviveAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AFFF RID: 45055 RVA: 0x001DC2F5 File Offset: 0x001DA4F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B000 RID: 45056 RVA: 0x001DC300 File Offset: 0x001DA500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					if (num != 112U && num != 114U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.baseAvatarIdList_.AddEntriesFrom(ref input, RogueMagicReviveAvatarCsReq._repeated_baseAvatarIdList_codec);
					}
				}
				else
				{
					this.MonsterId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004753 RID: 18259
		private static readonly MessageParser<RogueMagicReviveAvatarCsReq> _parser = new MessageParser<RogueMagicReviveAvatarCsReq>(() => new RogueMagicReviveAvatarCsReq());

		// Token: 0x04004754 RID: 18260
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004755 RID: 18261
		public const int MonsterIdFieldNumber = 12;

		// Token: 0x04004756 RID: 18262
		private uint monsterId_;

		// Token: 0x04004757 RID: 18263
		public const int BaseAvatarIdListFieldNumber = 14;

		// Token: 0x04004758 RID: 18264
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x04004759 RID: 18265
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();
	}
}
